﻿@model BookClubPortal.Models.Book
@model IEnumerable<BookClubPortal.Models.Book>
@{
    var grid = new WebGrid(Model, defaultSort:"Name", canPage:true,rowsPerPage:10);
}
@helper Truncate(string
input, int length)
    {
        
     if (input.Length <= length)
     {
        @input
     }
     else
     {
        @input.Substring(0, length)<text>...</text>
     }
} 

